package com.xbongbong.paas.pojo;

import com.xbongbong.paas.field.CustomRecheckRulePojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhouwq
 * @date 2021/11/26 11:37
 * 客户查重字段
 */
@Getter
@Setter
@ToString
public class RecheckJointLinkAttrPojo implements Serializable {

    private static final long serialVersionUID = -4102831911598594921L;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 字段attr
     */
    private String attr;
    /**
     * 字段名称
     */
    private String attrName;

    private String fieldId;

    private Integer fieldType;

    /**
     * 是系统字段还是自定义字段
     */
    private Integer isRedundant;
    /**
     * 当前字段的自定义关联关系
     */
    private List<CustomRecheckRulePojo> customRecheckRules;

    public RecheckJointLinkAttrPojo() {
    }

    public RecheckJointLinkAttrPojo(Long formId, String attr, String attrName, String fieldId, Integer fieldType,
                                    Integer isRedundant, List<CustomRecheckRulePojo> customRecheckRules) {
        this.formId = formId;
        this.attr = attr;
        this.attrName = attrName;
        this.fieldId = fieldId;
        this.fieldType = fieldType;
        this.isRedundant = isRedundant;
        this.customRecheckRules = customRecheckRules;
    }
}
